package cn.lwpframework.demo.controller;

import cn.lwpframework.annotation.Autowired;
import cn.lwpframework.annotation.Controller;
import cn.lwpframework.annotation.RequestMapping;
import cn.lwpframework.demo.service.TestService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * description:
 *
 * @author lanwp
 *
 * @date 2018/9/15 12:27
 */
@Controller
@RequestMapping("/test")
public class TestController {

    @Autowired private TestService testService;

    @RequestMapping("/hello")
    public String hello(HttpServletRequest req, HttpServletResponse res, String name) {
        testService.hello();
        return "test";
    }
}
